#ifndef _CBSOCKET_LINEPARSER_H
#define _CBSOCKET_LINEPARSER_H

#include <string>

#include "Parser.h"

namespace cbsocket
{
    class LineHandler;
    class LineParser : public Parser
    {
    public:
        LineParser(LineHandler *handler);
        virtual ~LineParser();
        
        virtual void processData(const void* data, size_t size);
        
    private:
        LineParser(LineParser const&);
        LineParser& operator = (LineParser const&);
        
        LineHandler *handler;
        
        std::string line;
    };
}

#endif
